import { DEFAULT_LAYOUT } from "../base"
import { AppRouteRecordRaw } from "../types"

const USER: AppRouteRecordRaw = {
  path: "/department",
  name: "department",
  component: DEFAULT_LAYOUT,
  meta: {
    locale: "menu.department",
    icon: "icon-settings",
    requiresAuth: true,
    order: 8
  },
  children: [
    {
      path: "departuser",
      name: "Departuser",
      component: () => import("@/views/department/departuser/index.vue"),
      meta: {
        locale: "角色管理",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "departmentinfo",
      name: "Departmentinfo",
      component: () => import("@/views/department/departmentinfo/index.vue"),
      meta: {
        locale: "部门管理",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "departrole",
      name: "Departrole",
      component: () => import("@/views/department/departrole/index.vue"),
      meta: {
        locale: "用户管理",
        requiresAuth: true,
        roles: ["*"]
      }
    }
  ]
}

export default USER
